-
Couldn't load subscription status.
- Fork 22
lsp worktree init #576
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lsp worktree init #576
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|
saga4 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
| function_optimizer = server.optimizer.create_function_optimizer( | ||
| current_function, | ||
| function_to_optimize_source_code=validated_original_code[current_function.file_path].source_code, | ||
| original_module_ast=original_module_ast, | ||
| original_module_path=current_function.file_path, | ||
| function_to_tests=server.optimizer.discovered_tests or {}, | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the function_optimizer here is pointing to the same path (current_function.file_path)
not the worktree path.
| # Create worktrees for optimization candidates if in git repo | ||
| server.show_message_log(f"Creating worktrees for optimization candidates of: {params.functionName}", "Info") | ||
| git_root, worktree_root_dir = None, None | ||
| worktree_root, worktrees = None, [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we have multiple worktrees here ?
PR Type
Enhancement
Description
Add LSP commands for git worktree management
Introduce
WorktreeParamsdataclass for requestsImplement
createWorktreeto setup worktreesImplement
removeWorktreeto cleanup worktreesDiagram Walkthrough
File Walkthrough
beta.py
Add worktree management functionscodeflash/lsp/beta.py
create_git_worktrees,create_worktree_root_dir,remove_git_worktreesWorktreeParamsdataclass for LSP paramscreateWorktreeLSP feature for creating worktreesremoveWorktreeLSP feature for cleanup